package kr.or.javacafe.USCM.USCM105.service;

import java.util.List;

import kr.or.javacafe.USCM.USCM105.dao.USCM105DAO;
import kr.or.javacafe.common.exception.KmtcException;
import kr.or.javacafe.common.exception.KmtcRuntimeException;

public class USCM105ServiceImpl implements USCM105Service {
	private USCM105DAO uscm105DAO;
	//이미 Spring이 이 메소드를 통해 주입시킨다
	public void setUscm105DAO(USCM105DAO uscm105DAO){
		this.uscm105DAO = uscm105DAO;	
	}
	
	public List findMemberList() throws KmtcException
	{
		try
		{
			List objList = uscm105DAO.selectMemberList();
			
			return objList;
		}
		catch (RuntimeException ex)
		{
			throw new KmtcRuntimeException(ex);
		}
		catch (Exception ex)
		{
			throw new KmtcException(ex);
		}
	}
	

}
